package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.ServiceType;
import com.bwie.service.ServiceTypeService;
import com.bwie.mapper.ServiceTypeMapper;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lenovo
 * @description 针对表【service_type(服务类型表)】的数据库操作Service实现
 * @createDate 2025-07-11 14:32:40
 */
@Service
public class ServiceTypeServiceImpl extends ServiceImpl<ServiceTypeMapper, ServiceType>
        implements ServiceTypeService {

    @Autowired
    ServiceTypeMapper typeMapper;

    @Override
    public R getServiceTypeList() {
        List<ServiceType> serviceTypes = typeMapper.selectList(null);

        return R.OK(serviceTypes);
    }
}




